const ROOTURL='http://localhost'
const APIV1 = '/api/v1'
const APIV2 = '/api/v2'
const APIV10 = '/api/v1.0'
// 搜索消息端口
const MESSAGEPORT = 8022
// 粉丝端口
const FANSPORT = 80
// 自动回复-基本回复
const BASICREPLYPORT = 8023
// 二维码
const QRCODEPORT = 8024

module.exports = {
  name: '微信公众平台',
  prefix: '微信公众平台',
  footerText: '上海隽珑信息技术有限公司	  © 2017',
  logo: '/logo.png',
  iconFontCSS: '/iconfont.css',
  iconFontJS: '/iconfont.js',
  YQL: ['http://www.zuimeitianqi.com'],
  CORS: ['http://localhost'],
  openPages: ['/login'],
  apiPrefix: '/api/v1',
  api: {
    userLogin: `${APIV1}/user/login`,
    userLogout: `${APIV1}/user/logout`,
    userInfo: `${APIV1}/userInfo`,
    users: `${APIV1}/users`,
    posts: `${APIV1}/posts`,
    searchmessage: `${ROOTURL}:${MESSAGEPORT}${APIV10}/chatsrecord/list`,
    searchmessages: `${ROOTURL}:${MESSAGEPORT}${APIV10}/chatsrecord/list`,
    realmessage: `${ROOTURL}:${MESSAGEPORT}${APIV10}/chatsrecord/list`,
    realmessages: `${ROOTURL}:${MESSAGEPORT}${APIV10}/chatsrecord/list`,
    user: `${APIV1}/user/:id`,
    dashboard: `${APIV1}/dashboard`,
    v1test: `${APIV1}/test`,
    v2test: `${APIV2}/test`,
    fans: `${ROOTURL}:${FANSPORT}${APIV10}/fans/list`,
    fanss: `${ROOTURL}:${FANSPORT}${APIV10}/fans/list`,
    fansgroup: `${ROOTURL}:${FANSPORT}${APIV10}/fansgroup`,
    group: `${ROOTURL}:${FANSPORT}${APIV10}/group`,
    tag: `${ROOTURL}:${FANSPORT}${APIV10}/tag`,
    autoreply: `${ROOTURL}:${BASICREPLYPORT}${APIV10}/rule/:id`,
    autoreplys: `${ROOTURL}:${BASICREPLYPORT}${APIV10}/autoreply/list`,
    custommenu: `${ROOTURL}${APIV10}/fans/list`,
    custommenus: `${ROOTURL}${APIV10}/fans/list`,
    qrcode: `${ROOTURL}:${QRCODEPORT}${APIV10}/qrcode/:id`,
    qrcodes: `${ROOTURL}:${QRCODEPORT}${APIV10}/qrcode/list`,
    qrcodesMulDel: `${ROOTURL}:${QRCODEPORT}${APIV10}/qrcode/mulDelete`,
    mass: `${ROOTURL}${APIV10}/mass/list`,
    masss: `${ROOTURL}${APIV10}/mass/list`,
    material: `${ROOTURL}${APIV10}/fans/list`,
    materials: `${ROOTURL}${APIV10}/fans/list`,
    template: `${ROOTURL}${APIV10}/fans/list`,
    templates: `${ROOTURL}${APIV10}/fans/list`,
  },
}
